using MediatR;
using RBAC.ErrorCode;
using System.Collections.Generic;

namespace RBAC.Write.Api.Application.Command.ERP.PurchasingManagement.PurchaseArrivalNotes
{
    /// <summary>
    /// 批量修改采购到货单单据状态命令（仅允许：开立 -> 审核 或 开立 -> 撤销）
    /// </summary>
    public class BatchChangePurchaseArrivalNoteStatusCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 采购到货单Id集合
        /// </summary>
        public List<long> Ids { get; set; } = new();

        /// <summary>
        /// 目标状态（"审核" 或 "撤销"）
        /// </summary>
        public string TargetStatus { get; set; } = string.Empty;

        /// <summary>
        /// 审批员（可选）
        /// </summary>
        public string? Auditor { get; set; }
    }
}
